home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-08 | 449 b | 20 lines | [TEXT/RLAB] |
- //-------------------------------------------------------------------//
- // union
-
- // Syntax: union ( A , B )
-
- // Description:
-
- // The union function returns a vector set that is the union of the
- // two sets A, and B.
-
- // See Also: complement, intersection, set
-
- //-------------------------------------------------------------------//
-
- union = function ( A, B )
- {
- if (A.n == 0 && B.n == 0) { return []; }
- return set ( [ A[:] ; B[:] ] )
- };
-